Skip to content

Conversation

@austinvalle
Copy link
Member

@austinvalle austinvalle commented Jan 17, 2025

Ref: hashicorp/terraform-plugin-framework#1061
Ref: hashicorp/terraform-plugin-framework#1064

This PR adds a test + resource that recreates the linked bug and tests the fix from framework in the linked PR.

Test failures without the fix (v5, but v6 are the same error messages):

https://github.com/hashicorp/terraform-provider-corner/actions/runs/12830667560/job/35779457519?pr=297

CLI Output
=== RUN   TestSetSemanticEqualityResource
    set_semantic_equality_resource_test.go:18: Step 1/3 error: Error running apply: exit status 1
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to framework_set_semantic_equality.test, provider
        "provider[\"registry.terraform.io/hashicorp/framework\"]" produced an
        unexpected new value: .set_of_ipv6: planned set element
        cty.StringVal("0:0:0:0:0:0:0:0") does not correlate with any element in
        actual.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to framework_set_semantic_equality.test, provider
        "provider[\"registry.terraform.io/hashicorp/framework\"]" produced an
        unexpected new value: .set_of_ipv6: planned set element
        cty.StringVal("0:0:0:0:0:0:0:101") does not correlate with any element in
        actual.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to framework_set_semantic_equality.test, provider
        "provider[\"registry.terraform.io/hashicorp/framework\"]" produced an
        unexpected new value: .set_of_ipv6: planned set element
        cty.StringVal("0:0:0:0:0:FFFF:192.168.255.255") does not correlate with any
        element in actual.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to framework_set_semantic_equality.test, provider
        "provider[\"registry.terraform.io/hashicorp/framework\"]" produced an
        unexpected new value: .set_of_ipv6: planned set element
        cty.StringVal("2001:0DB8:0000:0000:0008:0800:200C:417A") does not correlate
        with any element in actual.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to framework_set_semantic_equality.test, provider
        "provider[\"registry.terraform.io/hashicorp/framework\"]" produced an
        unexpected new value: .set_nested_block: planned set element
        cty.ObjectVal(map[string]cty.Value{"ipv6":cty.StringVal("2001:db8::8:800:200c:417a")})
        does not correlate with any element in actual.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to framework_set_semantic_equality.test, provider
        "provider[\"registry.terraform.io/hashicorp/framework\"]" produced an
        unexpected new value: .set_nested_block: planned set element
        cty.ObjectVal(map[string]cty.Value{"ipv6":cty.StringVal("FF01:0:0:0:0:0:0:0")})
        does not correlate with any element in actual.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.

@austinvalle austinvalle marked this pull request as ready for review January 17, 2025 16:03
@austinvalle austinvalle requested a review from a team as a code owner January 17, 2025 16:03
@austinvalle
Copy link
Member Author

Downstream package has been released, so this is good to go now!

@austinvalle austinvalle merged commit 66d465a into main Feb 19, 2025
93 checks passed
@austinvalle austinvalle deleted the av/set-semantic-equality branch February 19, 2025 21:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants